package com.qfedu.openapi.web.master.dao.user;

import com.qfedu.openapi.web.master.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDAO {
    User findUserById(@Param("id") Integer id);

    List<User> findAllUser();

    int insertUser(User user);

    int deleteUser(Integer[] ids);

    int updateUser(User user);

    List<User> findAllUsersByCondition(User user);

    User getUserByName(@Param("name") String name);
}
